package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.mapper.AddMapper;
import cn.wolfcode.trip.base.service.IAddService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/** tiger
 * 收货地址
 */
@Service
public class AddServiceImpl implements IAddService {

    @Autowired
    private AddMapper addMapper;

    /** tiger
     * 获取用户地址
     * @param userId
     * @return
     */
    public List getAddsByUserId(Long userId) {
        return addMapper.selectByUserId(userId);
    }
}
